<%@ page import="com.neuedu.entity.Emp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改</title>
</head>
<body>
<%
    Emp emp = (Emp) request.getAttribute("emp");
%>
<h3>雇员添加</h3>
<form action='<%=request.getContextPath()%>/emp' method='post'>
    <input type='hidden' name='_type' value='update'/>
    empno:<input type='text' name='empno' value="<%=emp.getEmpno()%>" readonly> <br>
    ename:<input type='text' name='ename' value="<%=emp.getEname()%>"> <br>

    job:<input type='text' name='job' value="<%=emp.getJob()%>"> <br>
    mgr:<input type='text' name='mgr' value="<%=emp.getMgr()%>"> <br>
    hiredate:<input type='text' name='hiredate' value="<%=emp.getHiredate()%>"> <br>
    sal:<input type='text' name='sal' value="<%=emp.getSal()%>"> <br>
    comm:<input type='text' name='comm' value="<%=emp.getComm()==null?"":emp.getComm()%>"> <br>
    deptno:<input type='text' name='deptno' value="<%=emp.getDeptno()%>"> <br>

    <input type='submit' value='修改部门' />

</form>

</body>
</html>
